﻿using App.Chat.Application.Implements;
using App.Chat.Application.Interface;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Zws.Frameworker.Module;

namespace App.Chat.Application
{
    public class AppApplicationModule : ModuleMark
    {
        public void OnBuilderExec(WebApplicationBuilder builder)
        {
            builder.Services.AddScoped<IUserService, UserService>();
            builder.Services.AddScoped<IFriendService, FriendService>();
            builder.Services.AddScoped<MongoService>();
            //builder.Services.AddTransient<IGroupService, GroupService>();
            //builder.Services.AddTransient<IMessageService, MessageService>();
        }
    }
}
